import request from '@/utils/axios/index.js'
const api_name = '/nurse/plan';

export const loadNursePlanApi = (data,pageParams) =>{
  return request.get({
    url:`${api_name}/select/${pageParams.page}/${pageParams.limit}`,
    params:data
  })
}

export const saveNursePlanApi = data =>{
  return request.post({
    url:`${api_name}/save`,
    data
  })
}

export const getPlanItemsByPid = pid =>{
  return request.get({
    url:`${api_name}/get/${pid}`,
  })
}

export const deletePlan = pid=>{
  return request.get({
    url:`${api_name}/delete/${pid}`,
  })
}